/* main.css - 全局与导航栏基础样式 */
@import url('https://fonts.googleapis.com/css2?family=Kaiti+SC:wght@400;700&family=Zhi+Mang+Xing&family=ZCOOL+KuaiLe&family=ZCOOL+QingKe+HuangYou&family=Ma+Shan+Zheng&family=Zhi+Mang+Xing&family=Smiley+Sans&display=swap');
@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css');
:root {
  --cinnabar-red: #c23b23;
  --celadon-blue: #3a5a6c;
  --xuan-paper-white: #f7f1e3;
  --ink-black: #222;
  --bronze-gray: #b0a084;
  --gold-foil: url('../assets/images/texture-gold-foil.jpg'); /* 金箔纹理占位 */
  --bronze-texture: url('../assets/images/texture-bronze.jpg'); /* 青铜纹理占位 */
  --jade-texture: url('../assets/images/texture-jade.jpg'); /* 玉石纹理占位 */
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 32px;
  --space-xl: 48px;
  --font-primary: '霞鹜文楷', 'Kaiti', 'STKaiti', 'KaiTi', '楷体', serif;
  --font-title: '霞鹜文楷', 'Kaiti', 'STKaiti', 'KaiTi', '楷体', serif;
  --font-sans: 'Smiley Sans', 'ZCOOL KuaiLe', 'ZCOOL QingKe HuangYou', 'Ma Shan Zheng', 'Zhi Mang Xing', sans-serif;
  /* 夜间模式变量预留 */
  --night-bg: #181818;
  --night-text: #f7f1e3;
  --night-card: #232323;
  --night-border: #444;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: var(--xuan-paper-white);
  color: var(--ink-black);
  transition: background 0.4s, color 0.4s;
}
body.night-mode {
  background: var(--night-bg);
  color: var(--night-text);
}
body:not(.index-home) {
  position: relative;
}
.body-bg-ta1 {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: linear-gradient(120deg, rgba(58,90,108,0.32) 0%, rgba(194,59,35,0.10) 100%), url('../assets/images/ta1.jpg') center center/cover no-repeat;
  filter: blur(1.5px) brightness(0.97) saturate(1.08);
  opacity: 0.97;
  pointer-events: none;
  transition: filter 0.5s;
  animation: bgFloat 18s ease-in-out infinite alternate;
}
@keyframes bgFloat {
  0% { background-position: 50% 50%; }
  100% { background-position: 54% 46%; }
}
/* 粒子动效容器 */
#bg-particles {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-l);
  background: linear-gradient(90deg, #222 60%, #b0a084 100%);
  box-shadow: 0 2px 8px rgba(34,34,34,0.08);
  padding: var(--space-m) 0;
  border-bottom: 3px solid var(--cinnabar-red);
  font-size: 1.2rem;
  position: relative;
  z-index: 10;
  font-family: var(--font-title);
}
.main-nav a {
  color: var(--xuan-paper-white);
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 22px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, filter 0.3s;
  letter-spacing: 2px;
  font-weight: bold;
  position: relative;
  background: rgba(194,59,35,0.08);
  box-shadow: 0 2px 8px #b0a08433;
  filter: drop-shadow(0 0 2px #b0a08444);
}
.main-nav a.active,
.main-nav a:hover {
  background: var(--gold-foil), linear-gradient(90deg, #c23b23 60%, #b0a084 100%);
  color: #fffbe6;
  box-shadow: 0 4px 16px #c23b2344, 0 0 0 2px #b0a08455;
  filter: drop-shadow(0 0 6px #c23b2344);
}
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-m);
}
.site-footer {
  background: var(--bronze-texture), #b0a084;
  color: #fffbe6;
  text-align: center;
  padding: var(--space-m) 0 0 0;
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: 1.1rem;
  border-top: 3px solid var(--cinnabar-red);
  box-shadow: 0 -2px 8px #b0a08433;
  position: relative;
  z-index: 10;
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  position: relative;
  z-index: 2;
}
.site-footer .footer-flower {
  width: 68px;
  height: 28px;
  margin-bottom: 0.2em;
  display: block;
  opacity: 0.82;
}
.site-footer .footer-badge {
  width: 32px;
  height: 32px;
  margin: 0 0.5em -0.2em 0.5em;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px #fffbe6cc);
}
.site-footer a.github-link {
  color: #c23b23;
  font-weight: bold;
  text-decoration: underline wavy #fffbe6 2px;
  font-size: 1.08em;
  margin-left: 0.5em;
  transition: color 0.22s, text-shadow 0.22s;
  text-shadow: 0 2px 8px #fffbe6cc;
}
.site-footer a.github-link:hover {
  color: #fffbe6;
  text-shadow: 0 2px 16px #c23b23cc, 0 0 8px #b0a084cc;
}
.site-footer .footer-gold {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: var(--gold-foil), linear-gradient(90deg, #fffbe6 60%, #b0a084 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px #b0a08433;
  z-index: 1;
}
.footer-badge-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  margin-bottom: 0.2em;
}
@media (max-width: 700px) {
  .site-footer-inner { font-size: 0.98rem; }
  .site-footer .footer-flower { width: 44px; height: 18px; }
  .site-footer .footer-badge { width: 22px; height: 22px; }
  .footer-badge-row { gap: 0.5em; }
}
body.night-mode .site-footer {
  background: var(--bronze-texture), #232323;
  color: #b0a084;
  border-top: 3px solid #3a5a6c;
  box-shadow: 0 -2px 8px #3a5a6c55;
}
body.night-mode .site-footer a.github-link {
  color: #fffbe6;
  text-shadow: 0 2px 8px #3a5a6ccc;
}
body.night-mode .site-footer a.github-link:hover {
  color: #c23b23;
  text-shadow: 0 2px 16px #fffbe6cc, 0 0 8px #b0a084cc;
}
button, .btn, .portfolio-link, .jade-bi-btn {
  font-family: var(--font-title);
  background: var(--jade-texture), linear-gradient(90deg, #f7f1e3 80%, #b0a084 100%);
  color: var(--cinnabar-red);
  border: 2px solid #b0a084;
  border-radius: 12px;
  box-shadow: 0 2px 8px #b0a08433;
  padding: 8px 24px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, filter 0.3s, transform 0.22s cubic-bezier(.22,1.12,.56,1.08);
}
button:hover, .btn:hover, .portfolio-link:hover, .jade-bi-btn:hover {
  background: var(--gold-foil), linear-gradient(90deg, #c23b23 60%, #b0a084 100%);
  color: #fffbe6;
  box-shadow: 0 8px 32px #c23b2344, 0 0 0 2px #b0a08455;
  filter: drop-shadow(0 0 12px #c23b2344) brightness(1.10);
  transform: translateY(-4px) scale(1.045);
}
body.night-mode button:hover, body.night-mode .btn:hover, body.night-mode .portfolio-link:hover, body.night-mode .jade-bi-btn:hover {
  box-shadow: 0 8px 32px #fffbe644, 0 0 0 2px #b0a08499;
  filter: drop-shadow(0 0 16px #fffbe655) brightness(1.08);
}
.card, .portfolio-item, .badge-item {
  background: var(--bronze-texture), #f7f1e3;
  border: 2px solid #b0a084;
  border-radius: 16px;
  box-shadow: 0 2px 12px #b0a08433;
  transition: box-shadow 0.3s, filter 0.3s;
}
.card:hover, .portfolio-item:hover, .badge-item:hover {
  box-shadow: 0 8px 32px #c23b2344, 0 0 0 2px #b0a08455;
  filter: drop-shadow(0 0 8px #c23b2344);
}
.night-mode-btn {
  background: none;
  border: none;
  outline: none;
  margin-left: var(--space-m);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px #b0a08422;
}
.night-mode-btn:hover {
  background: var(--gold-foil), #f7f1e3;
  box-shadow: 0 4px 16px #c23b2344, 0 0 0 2px #b0a08455;
}
.night-mode-btn svg {
  display: block;
}
body.night-mode .night-mode-btn {
  background: var(--bronze-texture), #232323;
}
body.night-mode .night-mode-btn:hover {
  background: var(--gold-foil), #b0a084;
}
.jade-bi-btn {
  width: 90px;
  height: 90px;
  background: var(--jade-texture), url('../assets/icons/icon-jade-bi.svg') center/contain no-repeat;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 24px #b0a08488, 0 0 0 8px #f7f1e355;
  position: absolute;
  right: 8vw;
  top: 3vw;
  cursor: pointer;
  z-index: 10;
  transition: box-shadow 0.3s, transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 12px #3a5a6c44) brightness(1.08) saturate(1.12);
}
.jade-bi-btn:hover {
  box-shadow: 0 0 40px #3a5a6c88, 0 0 0 12px #f7f1e355;
  transform: rotate(-8deg) scale(1.06);
  filter: drop-shadow(0 0 24px #3a5a6c88) brightness(1.15) saturate(1.18);
}
.quote-section {
  margin: 0 auto;
  max-width: 520px;
  background: var(--xuan-paper-white) url('../assets/images/texture-stone-tablet.jpg') center/cover no-repeat;
  border: 3px solid #b0a084;
  border-radius: 18px;
  box-shadow: 0 4px 32px #b0a08433, 0 0 0 6px #f7f1e355;
  padding: 2.2rem 1.6rem 1.6rem 1.6rem;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.quote-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: #3a5a6c;
  letter-spacing: 4px;
  text-shadow: 0 2px 0 #fffbe6, 0 0 8px #b0a08444;
  filter: contrast(1.08) brightness(1.08);
  text-stroke: 1px #b0a084;
  -webkit-text-stroke: 1px #b0a084;
}
.quote-source {
  font-size: 1.1rem;
  color: #b0a084;
  margin-top: 1.2rem;
  letter-spacing: 2px;
  font-family: var(--font-sans);
}
.main-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  color: var(--cinnabar-red);
  letter-spacing: 0.32em;
  text-shadow: 0 2px 0 #fffbe6, 0 0 16px #c23b2344, 0 0 32px #b0a08433;
  filter: drop-shadow(0 0 8px #c23b2344) brightness(1.08);
  padding: 0.6em 0 0.2em 0;
  margin-bottom: 0.2em;
  border-bottom: 3px solid var(--cinnabar-red);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(90deg, #fffbe6 60%, #f7f1e3 100%);
  box-shadow: 0 2px 12px #b0a08422;
}
.nav-seal {
  display: flex;
  align-items: center;
  margin-right: var(--space-l);
  margin-left: 0.5vw;
  filter: drop-shadow(0 2px 8px #c23b2344) drop-shadow(0 0 2px #fffbe6cc);
  transition: transform 0.25s, filter 0.25s;
}
.nav-seal svg {
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 12px #c23b2344, 0 0 0 2px #fffbe6cc;
}
.nav-seal:hover {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 4px 16px #c23b2388) drop-shadow(0 0 6px #fffbe6cc);
}
.main-signature {
  font-family: 'Zhi Mang Xing', 'Ma Shan Zheng', '霞鹜文楷', 'Kaiti', cursive, serif;
  font-size: 2.2rem;
  color: var(--cinnabar-red);
  letter-spacing: 0.18em;
  text-shadow: 0 2px 0 #fffbe6, 0 0 12px #c23b2344, 0 0 24px #b0a08433;
  filter: drop-shadow(0 0 8px #c23b2344) blur(0.5px) brightness(1.08);
  margin-bottom: 0.5em;
  position: relative;
  cursor: pointer;
  transition: filter 0.3s, text-shadow 0.3s;
}
.main-signature::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 60%;
  width: 110%;
  height: 1.2em;
  transform: translate(-50%, 0) scale(1, 0.5);
  background: url('../assets/images/texture-ink-wash.png') center/cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2.5px);
}
.main-signature:hover {
  filter: drop-shadow(0 0 18px #c23b23cc) blur(1px) brightness(1.12);
  text-shadow: 0 4px 0 #fffbe6, 0 0 24px #c23b23cc, 0 0 48px #b0a08455;
}
/* 全站自定义滚动条 */
::-webkit-scrollbar {
  width: 12px;
  background: linear-gradient(120deg, #f7f1e3 60%, #b0a084 100%);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #b0a084 60%, #3a5a6c 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px #b0a08444;
  border: 2.5px solid #fffbe6;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(120deg, #c23b23 60%, #b0a084 100%);
}
body.night-mode ::-webkit-scrollbar {
  background: linear-gradient(120deg, #232323 60%, #3a5a6c 100%);
}
body.night-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #3a5a6c 60%, #232323 100%);
  border: 2.5px solid #b0a084;
}
/* 回到顶部按钮 */
#backToTopBtn {
  position: fixed;
  right: 2vw;
  bottom: 3vh;
  width: 54px;
  height: 54px;
  background: var(--jade-texture), linear-gradient(120deg, #fffbe6 60%, #b0a084 100%);
  border: 2.5px solid #b0a084;
  border-radius: 50%;
  box-shadow: 0 4px 24px #b0a08433, 0 0 0 4px #fffbe6cc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0.92;
  transition: box-shadow 0.28s, transform 0.22s cubic-bezier(.22,1.12,.56,1.08), opacity 0.22s;
  filter: drop-shadow(0 0 8px #b0a08444);
  animation: backtotop-float 2.2s ease-in-out infinite alternate;
}
#backToTopBtn:hover {
  box-shadow: 0 8px 32px #c23b2344, 0 0 0 8px #b0a08455;
  transform: translateY(-6px) scale(1.08) rotate(-6deg);
  opacity: 1;
  filter: drop-shadow(0 0 18px #c23b23cc) brightness(1.10);
}
@keyframes backtotop-float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  #backToTopBtn { display: none; }
}
/* 页面切换淡入淡出动效 */
.fade-page-enter {
  animation: fadeInPage 0.88s cubic-bezier(.22,1.12,.56,1.08);
}
.fade-page-leave {
  animation: fadeOutPage 0.66s cubic-bezier(.22,1.12,.56,1.08);
}
@keyframes fadeInPage {
  0% { opacity: 0; filter: blur(12px) brightness(0.8); }
  60% { opacity: 1; filter: blur(0) brightness(1.05); }
  100% { opacity: 1; filter: blur(0) brightness(1); }
}
@keyframes fadeOutPage {
  0% { opacity: 1; filter: blur(0) brightness(1); }
  100% { opacity: 0; filter: blur(12px) brightness(0.8); }
}
/* 文化彩蛋气泡样式 */
.cultural-egg-bubble {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: linear-gradient(120deg, #fffbe6 80%, #b0a084 100%);
  border: 2.5px solid #b0a084;
  border-radius: 18px 18px 22px 22px/32px 32px 18px 18px;
  box-shadow: 0 4px 24px #b0a08433, 0 0 0 4px #fffbe6cc;
  padding: 1.1em 1.6em;
  font-family: var(--font-title);
  font-size: 1.08rem;
  color: #3a5a6c;
  letter-spacing: 1.2px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.32s;
  animation: eggBubbleIn 0.7s cubic-bezier(.22,1.12,.56,1.08);
}
@keyframes eggBubbleIn {
  0% { opacity: 0; transform: translate(-50%, -180%) scale(0.7); }
  80% { opacity: 1; transform: translate(-50%, -110%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -120%) scale(1); }
}
body.night-mode .cultural-egg-bubble {
  background: linear-gradient(120deg, #232323 80%, #3a5a6c 100%);
  color: #fffbe6;
  border-color: #3a5a6c;
} 